package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the "STORAGE" database table.
 * 
 */
@Entity
@Table(name="\"STORAGE\"")
@NamedQuery(name="Storage.findAll", query="SELECT s FROM Storage s")
public class Storage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="STORAGE_STORAGE_ID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="STORAGE_STORAGE_ID_GENERATOR")
	@Column(name="\"storage _id\"")
	private long storage_Id;

	private BigDecimal num;

	//bi-directional many-to-one association to ProductStandard
	@ManyToOne
	@JoinColumn(name="STANID")
	private ProductStandard productStandard;

	//bi-directional many-to-one association to Stock
	@ManyToOne
	@JoinColumn(name="STOCK_ID")
	private Stock stock;

	public Storage() {
	}

	public long getStorage_Id() {
		return this.storage_Id;
	}

	public void setStorage_Id(long storage_Id) {
		this.storage_Id = storage_Id;
	}

	public BigDecimal getNum() {
		return this.num;
	}

	public void setNum(BigDecimal num) {
		this.num = num;
	}

	public ProductStandard getProductStandard() {
		return this.productStandard;
	}

	public void setProductStandard(ProductStandard productStandard) {
		this.productStandard = productStandard;
	}

	public Stock getStock() {
		return this.stock;
	}

	public void setStock(Stock stock) {
		this.stock = stock;
	}

}